/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package deadlocksim;
import java.io.IOException;
import java.util.*;
import deadlocksim.backend.*;
import deadlocksim.backend.io.*;
import deadlocksim.backend.process.*;
import deadlocksim.backend.resources.*;
import deadlocksim.gui.*;
import javax.swing.*;
/**
 *
 * @author romilian
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws IOException 
    {
        //DeadlockSim mySim = new DeadlockSim();
        /* commented by Karen 
        ResourceFileLoader rLoader = new ResourceFileLoader("resource.txt");
        rLoader.createResources(mySim);*/
        //DeadlockSim mySim = new DeadlockSim();
        
        //setup resourceFrame
        //JFrame resourceFrame = new JFrame();
        //resourceFrame.setContentPane((JPanel)(mySim.getResourceDisplay()));
        //resourceFrame.add((JPanel)(mySim.getStatusDisplay()));
        
        //mainPage.add((JPanel)(mySim.getStatusDisplay()));
        
        MainPage mainPage = new MainPage();
        
        mainPage.setVisible(true);
        //mySim.sendMessage("Welcome to our Deadlock GUI.",false);
        //mySim.sendMessage("Please navigate using the buttons on the left.",false);
        //mySim.sendMessage("Welcome to our Deadlock GUI.\n" +
        //        "Plese navigate using the buttons on the left.",false);
        
           
        
    }

}
